package www.openteam.com.bean;

import java.io.Serializable;

import www.openteam.com.R;
import www.openteam.com.ui.HomeFragmet;
import www.openteam.com.ui.business.DeliverNoteFragment;
import www.openteam.com.ui.business.QueryCustomInfoFragment;
import www.openteam.com.ui.business.EditProductInfoFragment;
import www.openteam.com.ui.realtime.SignatureFragment;

/**
 * 电子商务功能的枚举类
 * Created by kylin on 2016/8/5.
 */
public enum OTBusiness implements Serializable {

    CUSTOMERINFO(0, R.string.edit_customer_info, R.drawable.tab_icon_custom,
            HomeFragmet.class, R.array.customerinfo, "MP0003"),
    PRODUCTINFO(1, R.string.edit_product_info, R.drawable.tab_icon_prctinfo,
            HomeFragmet.class, R.array.productinfo, "MP0002"),
    CUSTOMERORDER(2, R.string.new_customer_order, R.drawable.tab_icon_cstmform,
            HomeFragmet.class, R.array.customOrderinfo, "MP0001"),
    DELIVERY(3, R.string.delivery_note, R.drawable.tab_icon_delivery,
            DeliverNoteFragment.class, R.array.customOrderinfo, "MP0001"),
    LOADING(4, R.string.loading_list, R.drawable.tab_icon_loadinglist,
            DeliverNoteFragment.class, R.array.customOrderinfo, "MP0001")
;


    private int i;
    private int resName;
    private int resIcon;
    private Class<?> clz;
    private int resDetail;


    private String appAuthority; //权限

    OTBusiness(int i, int resName, int resIcon, Class<?> clz, int resDetail, String appAuthority) {
        this.i = i;
        this.resName = resName;
        this.resIcon = resIcon;
        this.clz = clz;
        this.resDetail = resDetail;
        this.appAuthority = appAuthority;
    }

    public int getResDetail() {
        return resDetail;
    }

    public void setResDetail(int resDetail) {
        this.resDetail = resDetail;
    }

    public int getI() {
        return i;
    }

    public void setI(int i) {
        this.i = i;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getClz() {
        return clz;
    }

    public String getAppAuthority() {
        return appAuthority;
    }

    public void setAppAuthority(String appAuthority) {
        this.appAuthority = appAuthority;
    }

}
